package com.e3.basdoc.corp.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.e3.core.base.SuperEntity;

@Entity
@Table(name = "T_CORPORATION")
public class CorpEntity extends SuperEntity {

	private static final long serialVersionUID = -3982584523287447825L;

	/** 基本信息 */
	private String code;

	private String name;

	private String shortName;

	private int type;

	private Long parentId;

	private Long regionId;

	private String businessAddress;

	private String contactAddress;

	private String fax;

	private String zipcode;

	private String telphone;

	private String email;

	private String remark;

	/** 注册信息 */
	private String registerAddress;

	private String legalPerson;

	private String legalPersonIdcard;

	private String registerNo;

	private String taxNo;

	private String contactPerson;

	private String contactWay;

	private Long foundTime;

	private Long currencyId;

	private Long registerStartTime;

	private Long registerEndTime;

	private int taxpayerType;

	/** 其他信息 */
	private boolean establishAccount;

	private int maxUsers;

	private int maxBranchs;

	private Long startTime;

	private Long endTime;
	
	public CorpEntity(){
		
	}
	
	public CorpEntity(Long id,String code,String name,String shortName){
		setId(id);
		setCode(code);
		setName(name);
		setShortName(shortName);
	}

	@Column(name = "CODE")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "SHORT_NAME")
	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	@Column(name = "TYPE")
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	@Column(name = "PARENT_ID")
	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	@Column(name = "REGION_ID")
	public Long getRegionId() {
		return regionId;
	}

	public void setRegionId(Long regionId) {
		this.regionId = regionId;
	}

	@Column(name = "BUSINESS_ADDRESS")
	public String getBusinessAddress() {
		return businessAddress;
	}

	public void setBusinessAddress(String businessAddress) {
		this.businessAddress = businessAddress;
	}

	@Column(name = "CONTACT_ADDRESS")
	public String getContactAddress() {
		return contactAddress;
	}

	public void setContactAddress(String contactAddress) {
		this.contactAddress = contactAddress;
	}

	@Column(name = "FAX")
	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "ZIPCODE")
	public String getZipcode() {
		return zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	@Column(name = "TELPHONE")
	public String getTelphone() {
		return telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}

	@Column(name = "EMAIL")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "LEGAL_PERSON")
	public String getLegalPerson() {
		return legalPerson;
	}

	public void setLegalPerson(String legalPerson) {
		this.legalPerson = legalPerson;
	}

	@Column(name = "LEGAL_PERSON_IDCARD")
	public String getLegalPersonIdcard() {
		return legalPersonIdcard;
	}

	public void setLegalPersonIdcard(String legalPersonIdcard) {
		this.legalPersonIdcard = legalPersonIdcard;
	}

	@Column(name = "CONTACT_PERSON")
	public String getContactPerson() {
		return contactPerson;
	}

	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}

	@Column(name = "CONTACT_WAY")
	public String getContactWay() {
		return contactWay;
	}

	public void setContactWay(String contactWay) {
		this.contactWay = contactWay;
	}

	@Column(name = "ESTABLISH_ACCOUNT")
	public boolean getEstablishAccount() {
		return establishAccount;
	}

	public void setEstablishAccount(boolean establishAccount) {
		this.establishAccount = establishAccount;
	}

	@Column(name = "FOUND_TIME")
	public Long getFoundTime() {
		return foundTime;
	}

	public void setFoundTime(Long foundTime) {
		this.foundTime = foundTime;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "REGISTER_ADDRESS")
	public String getRegisterAddress() {
		return registerAddress;
	}

	public void setRegisterAddress(String registerAddress) {
		this.registerAddress = registerAddress;
	}

	@Column(name = "REGISTER_NO")
	public String getRegisterNo() {
		return registerNo;
	}

	public void setRegisterNo(String registerNo) {
		this.registerNo = registerNo;
	}

	@Column(name = "REGISTER_START_TIME")
	public Long getRegisterStartTime() {
		return registerStartTime;
	}

	public void setRegisterStartTime(Long registerStartTime) {
		this.registerStartTime = registerStartTime;
	}

	@Column(name = "REGISTER_END_TIME")
	public Long getRegisterEndTime() {
		return registerEndTime;
	}

	public void setRegisterEndTime(Long registerEndTime) {
		this.registerEndTime = registerEndTime;
	}

	@Column(name = "TAX_NO")
	public String getTaxNo() {
		return taxNo;
	}

	public void setTaxNo(String taxNo) {
		this.taxNo = taxNo;
	}

	@Column(name = "CURRENCY_ID")
	public Long getCurrencyId() {
		return currencyId;
	}

	public void setCurrencyId(Long currencyId) {
		this.currencyId = currencyId;
	}

	@Column(name = "TAXPAYER_TYPE")
	public int getTaxpayerType() {
		return taxpayerType;
	}

	public void setTaxpayerType(int taxpayerType) {
		this.taxpayerType = taxpayerType;
	}

	@Column(name = "MAX_USERS")
	public int getMaxUsers() {
		return maxUsers;
	}

	public void setMaxUsers(int maxUsers) {
		this.maxUsers = maxUsers;
	}

	@Column(name = "MAX_BRANCHS")
	public int getMaxBranchs() {
		return maxBranchs;
	}

	public void setMaxBranchs(int maxBranchs) {
		this.maxBranchs = maxBranchs;
	}

	@Column(name = "START_TIME")
	public Long getStartTime() {
		return startTime;
	}

	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}

	@Column(name = "END_TIME")
	public Long getEndTime() {
		return endTime;
	}

	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}

}
